package tack15;

import javax.swing.*;
import java.awt.*;

/**
 * 改密界面
 */
public class ChangePwdPanel extends JPanel {
    private JLabel passwordJLable=new JLabel("原密码:");
    private JPasswordField pwdField = new JPasswordField();

    private JLabel passwordJLable1=new JLabel("新密码:");
    private JPasswordField pwdField1 = new JPasswordField();

    private JLabel passwordJLable2=new JLabel("再次输入新密码:");
    private JPasswordField pwdField2 = new JPasswordField();


    private ImageIcon sureImg= new ImageIcon("atmlogo/buttonSure.jpg");
    private ImageIcon clearImg= new ImageIcon("atmlogo/buttonClear.jpg");

    private Font font = new Font("黑体",Font.BOLD,30);

    private JButton sureBth= new JButton(sureImg);
    private JButton clearBth= new JButton(clearImg);

    public ChangePwdPanel(){
        this.setLayout(null);
        sureBth.setBounds(530,480,140,50);
        clearBth.setBounds(360,480,150,50);

        passwordJLable.setBounds(260,200,120,50);
        passwordJLable.setFont(font);

        pwdField.setBounds(400,200,250,50);
        pwdField.setFont(font);


        passwordJLable1.setBounds(260,300,120,50);
        passwordJLable1.setFont(font);

        pwdField1.setBounds(400,300,250,50);
        pwdField1.setFont(font);


        passwordJLable2.setBounds(160,400,250,50);
        passwordJLable2.setFont(font);

        pwdField2.setBounds(400,400,250,50);
        pwdField2.setFont(font);


        this.add(passwordJLable);
        this.add(pwdField);
        this.add(pwdField1);
        this.add(pwdField2);
        this.add(passwordJLable1);
        this.add(passwordJLable2);
        this.add(sureBth);
        this.add(clearBth);

        this.setOpaque(false);
    }
}
